﻿using ConsoleApp1.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public class DbInit:DropCreateDatabaseAlways<AdminDb>
    {
        protected override void Seed(AdminDb dbContext)
        {
            //var user = new User
            //{
            //    UserName = "admin",
            //    Password = "123456",
            //    IsActived = true,
            //    IsDeleted = false,
            //    CreatedTime = DateTime.Now,
            //    UpdateTime = DateTime.Now,
            //    Remarks = "轻微尝试"
            //};
            //dbContext.Users.Add(user);
            ////dbContext.SaveChanges();
            //base.Seed(dbContext);
        }
    }
}
